import { delay } from '../../utils'
import { post } from '../../utils/fetch'
import { consultantDetail, submitNewMessage, consultantSecondDetail } from '../../utils/api'

export const submitMessage = async (params) => {
  return post(submitNewMessage(params), {})
}

export const getSecondList = async (params) => {
  return post(consultantSecondDetail(params), {})
}

export const getConsultantDetail = async (params) => {
  return post(consultantDetail(params),{})
  // return [{
  //   question: '哈哈',
  //   time: '2018-5-1',
  //   answers: [{
  //     content: '你知道吗',
  //     author: '小小'
  //   }, {
  //     content: '不知道吗',
  //     author: '大大'
  //   }]
  // },{
  //   question: '呵呵',
  //   time: '2018-5-1',
  //   answers: [{
  //     content: '你知道吗',
  //     author: '小小'
  //   }, {
  //     content: '不知道吗',
  //     author: '大大'
  //   }]
  // }]
}
